Skip to content

Fix multiple instances issue #5012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Gyan-max
Copy link

@Gyan-max Gyan-max commented Apr 7, 2025

Add --update-only flag for database updates without scanning

This PR implements a solution for issue #4777 to improve the experience for users running multiple copies of cve-bin-tool in parallel.

Changes:

  • Added a new --update-only flag that allows users to update the database without requiring a directory or file to scan
  • When this flag is specified, the tool will:
  • Update the database (with -u now behavior)
  • Exit after the update is complete without proceeding to scanning
  • Updated the documentation in:
  • doc/MANUAL.md to include the new flag in the Database Management section
  • doc/how_to_guides/multiple_scans_at_once.md to recommend using this flag in parallel usage scenarios
  • Added a test case to verify the functionality

This addresses the first part of issue #4777, making it more intuitive for users to separate database updates from scanning when running multiple instances of the tool in parallel.

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this got jumbled together with your language tests PR. You willneed to rebase this branch to origin/main before we can review and potentially merge it.

@Gyan-max Gyan-max force-pushed the fix-multiple-instances-issue branch 2 times, most recently from 5210b32 to c67e643 Compare April 22, 2025 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants